#include "widget.h"

#include <QApplication>
#include "imgprodcons.h"
#include<thread>

using namespace std;

int main(int argc, char *argv[])
{

    ImgProdCons imgProdCons;
    imgProdCons.init();
    ourthread *produce ;
    ourthread *consum;
    //ourthread *send;
    produce = new ourthread(&imgProdCons,1);
    consum = new ourthread(&imgProdCons,2);
   // send = new ourthread(&imgProdCons,3);
    produce->start();
    consum->start();
    //send->start();
    produce->wait();
    consum->wait();
    //send->wait();
    return 0;


}
